<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"+ request.getServerName() + ":" + request.getServerPort()+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=8" />
<title>我的定制</title>

<script src="jquery/js/jquery-1.8.2.js"></script>
<script src="jquery/js/jquery-ui-1.9.0.custom.min.js"></script>
<link rel="stylesheet" href="jquery/css/ui-lightness/jquery-ui-1.9.0.custom.min.css" />

<link href="css/sharecss/share.css" type="text/css" rel="stylesheet" />
<link href="css/shoppingCarAndMyCustom.css" type="text/css" rel="stylesheet" />
<link href="css/myfriend_friendactivity.css" type="text/css" rel="stylesheet" />
<link href="css/myfriend-friendactivity_right_child.css" type="text/css" rel="stylesheet" />
<link rel="stylesheet" type="text/css" href="/webbei/js/bgjs/css/index.css" />
<!-- <link rel="stylesheet" type="text/css" href="swfupload/default.css" /> -->
<link rel="stylesheet" type="text/css" href="css/login.css" />
<link rel="stylesheet" type="text/css" href="css/custom.css" />

<link rel="stylesheet" href="css/zmcss/jPages.css" />
<link rel="stylesheet" href="css/zmcss/jPages2.css" />
<link rel="stylesheet" href="css/zmcss/jPages4.css" />
<link rel="stylesheet" href="css/xixiaoming/lrtk.css"/>
<script type="text/javascript" src="js/myCustonAndShoppingCar/jquery.flexslider-min.js"></script>
<script type="text/javascript" src="js/myCustonAndShoppingCar/MyCustoms.js" charset="UTF-8"></script>
<script type="text/javascript" src="js/myCustonAndShoppingCar/participate.js"></script>
<script type="text/javascript" src="js/login.js"></script>
<!-- jpages need js -->
<script src="js/zmjs/jPages.js"></script>
<script src="js/zmjs/jPages2.js"></script>
<script src="js/zmjs/jPages4.js"></script>
<!--my method js -->
<script src="js/zmjs/myChest.js"></script>
<script src="js/zmjs/myfriend.js"></script>
<script src="js/zmjs/MyshareAndPartInShare.js"></script>

<script type="text/javascript" src="js/myCustonAndShoppingCar/bgiframe.js"></script>
<script type="text/javascript" src="js/myCustonAndShoppingCar/weebox.js"></script>
<link type="text/css" rel="stylesheet" href="css/xixiaoming/weebox.css" />

<style type="text/css">
html { /* 出现滚动条 */
	overflow: scroll;
}
</style>
</head>
<body style="width:100%;margin:0px; padding:0px;text-align:center;" id="logincheck">
	<jsp:include page="top.jsp"></jsp:include>
	<div style="width:1100px;height:50px;"></div>
		<div align="center" style="margin:0 auto;width:1000px;">
			<jsp:include page="userCenter_Left.jsp"></jsp:include>
			<div>
				<div class="myfriend_friendactivity_content_right_select"
					style="float:right">

					<div class="myfriend_friendactivity_content_right_select_order"
						style="background-color:rgb(114,1,1);">

						<div class="myfriend_friendactivity_content_right_select_order_up">
							<a href="javascript:void(0);" onclick="myDesign();$(this).parent().parent().css('background-color','#720101');$(this).parent().parent().siblings().css('background-color','#EBEBEB');">我的定制</a>
						</div>
						<div
							class="myfriend_friendactivity_content_right_select_order_down" style="cursor:default">
							(${OrdersNumber+CustomsNumber+ProductNumber}件)
						</div>
					</div>
					<div class="myfriend_friendactivity_content_right_select_myshare"
						style="background-color:rgb(235,235,235);">
						<div class="myfriend_friendactivity_content_right_select_order_up">
							<a href="javascript:void(0);" onclick="myShareAll();$(this).parent().parent().css('background-color','#720101');$(this).parent().parent().siblings().css('background-color','#EBEBEB');">我的分享</a>
						</div>
						<div
							class="myfriend_friendactivity_content_right_select_order_down" style="cursor:default">
							(${ShareNumber})
						</div>
					</div>
					<div class="myfriend_friendactivity_content_right_select_myfriend"
						style="background-color:rgb(235,235,235);">
						<div class="myfriend_friendactivity_content_right_select_order_up">
							<a href="javascript:void(0);" onclick="myFriendsAll();$(this).parent().parent().css('background-color','#720101');$(this).parent().parent().siblings().css('background-color','#EBEBEB');">我的好友</a>
						</div>
						<div class="myfriend_friendactivity_content_right_select_order_down" onclick="$('#myfriendslist').dialog('open');">
							(${FriendNumber})
						</div>
					</div>
					<div class="myfriend_friendactivity_content_right_select_mymoney"
						style="background-color:rgb(235,235,235);">
						<div class="myfriend_friendactivity_content_right_select_order_up">
							<a href="javascript:void(0);" onclick="myChestAll();$(this).parent().parent().css('background-color','#720101');$(this).parent().parent().siblings().css('background-color','#EBEBEB');">我的金库</a>
						</div>
						<div
							class="myfriend_friendactivity_content_right_select_order_down">
							(${MyAllmoney}元)
						</div>
					</div>
				</div>
				<br />
				<div class="shoppingCar_subtitle" id="shoppingCar_subtitle">
					<a href="javascript:void(0);" style="margin-left:10px;" onclick="showMyDesign()">我的定制</a>
					<font color="blue">（${CustomsNumber}个）</font>
					<input type="checkbox" style="margin-left:50px;" onclick="checkAll()" id="checkAllbox" />全选&nbsp;&nbsp;
					<a href="javascript:void(0);" onclick="showMyOrder()">我的订单</a>
					<font color="blue">（${OrdersNumber}个）</font>
					<font style="margin-left:50px;" id="checkAllbox"></font>&nbsp;
					<a href="javascript:void(0);" onclick="showMyProject()">我的设计</a>
					<font color="blue">（${ProductNumber}个）</font>
				</div>
				<br />


				<div style="display:block;height:auto;width:612px;float:right" id="myDesignTable">
					<div id="myDesignTableDIV" style="font-family:'微软雅黑'">
						<c:forEach items="${customList}" var="s">
							<div style="padding-top:10px;overflow:hidden;width:600px;clear:both;">
								<table style="float:left;"><tr>
									<td style="vertical-align:middle;"><img src="${s.customPic}" style="width:200px;height:auto;" /></td>
									<td width="5%"></td>
									<td align="left" valign="middle" style="font-size:14px;color:#333;">
										主题：${s.customName}<br /> 编号：${s.customId}<br />
										价格：￥${s.customPrice}<br /> 户名：${s.userName}<br />
										电话：${s.receiveMobilephone }<br />
										地址：${s.receiveProvince }&nbsp;${s.receiveCity }&nbsp;${s.receiveArea }&nbsp;${s.receiveAddress }<br /> <br />
										设计时间：${s.customTime_bak} <br /> <br />
										<input type="button" value="重设计" onclick="showCustom(${s.customId})" />
										<input type="button" value="删除" onclick="deleCustom(${s.customId})" />
										<c:if test="${s.isShare==1}">
											<input type="button" value="去分享" onclick="gotoParticipate(${s.customId},'c');$(this).val('已分享');" />
										</c:if>
										<c:if test="${s.isShare==2}">
											<input type="button" value="已分享" onclick="gotoParticipate(${s.customId},'c');" />
										</c:if>
										<input type="checkbox" id="" name="checkbox_payment" value="${s.customId}" /> 付款
									</td>
								</tr></table>
							</div>
						</c:forEach>
					</div>
					<div id="myDesignTableDIVbuttom" class="holder"></div>
					<c:if test="${not empty customList}">
						<div>
							<input type="button" value="再定制" onclick="toNewCustom()" />
							<input type="button" value="去付款" onclick="payment()" />
						</div>
					</c:if>
				</div>


				<div id="myOrderTable" style="width:612px;display:none;height:auto;float:right"></div>
				<div id="MyProjectTable" style="width:612px;display:none;height:auto;float:right">
				</div>
				<div id="shareContent" style="width:612px;display:none;height:auto;float:right">
					<div class="myfriend_friendactivity_content_right_childtitle">
						<div class="myfriend_friendactivity_content_right_childtitle_left">
							<div style="width:153px; height:23px; float:left; padding-top:3px; text-align:left;">
								<a onclick="showMyParticipate()" href="javascript:void(0);">个人分享</a>
								(<span id="myShare_count"></span>条)
							</div>
						</div>
						<div class="myfriend_friendactivity_content_right_childtitle_right">
							<div style="width:153px; height:23px; padding-top:3px;">
								<a onclick="showMyJoinInShare()" href="javascript:void(0);">参与分享</a>
								(<span id="partinshare_count"></span>个)
							</div>
						</div>
					</div>
					<div id="all_share_content_myshare_out"></div>
					<div id="myJoinInShare"></div>
				</div>
				<div id="friend_content_right" style="width:612px;display:none;height:auto;float:right"></div>
				<div id="myfriendcontent" style="width:612px;display:none;height:auto;float:right"></div>

				<div>

				</div>
			</div>
		</div>
	<!-- 设计师提交弹出层 -->
	<div id="newProduct" style="display:none;text-align:left;background-color: #fff;overflow:hidden;">
		<form action="newProductAtMyCustomAction.action" id="form1" name="form1" encType="multipart/form-data" method="post" target="hidden_frame">
			<table style="width:100%">
			<tr><td colspan="2">上传产品图片：</td></tr>
			<tr><td colspan="2"><input style="width:100%" type="file" name="picture" value="上传产品图片"></td></tr>
			<tr><td>产品名称：</td>
			<td><input type="text" style="width:100%" name="labelname" value="" id="labelname" onblur="checkName()"/></td></tr>
			<tr><td colspan="2">产品功能：</td></tr>
			<tr><td colspan="2"><textarea style="width:100%" rows="3" cols="30" name="function" id="function"></textarea></td></tr>
			<tr><td colspan="2">市场前景：</td></tr>
			<tr><td colspan="2"><textarea style="width:100%" rows="3" cols="30" name="market" id="market"></textarea></td></tr>
			<tr><td>备注信息：</td><td><input type="text" style="width:100%" value="" name="remark"/></td></tr>
			<tr><td colspan="2"><input type="button" value="确定提交" onclick="newProduct()"/></td></tr>
			</table>
			<iframe id="hidden_frame" style="display:none" name="hidden_frame"></iframe>
		</form>
	</div>
	<!-- 发私信的弹出层 -->
	<div id="private_comm" style="display:none;text-align:left;background-color:#fff;overflow:hidden;">
		<form action="shiliaoAtshare.action" enctype="multipart/form-data" id="shiliaoForm" name="fileform" method="post" target="upload-target">
			<table style ="width:100%"><tr><td>收信人：</td><td><input style ="width:100%" id="shoujianren" name="shoujianren" type="text" readonly /></td></tr>
			<tr><td colspan="2">内容：</td></tr>
			<tr><td colspan="2"><textarea style ="width:100%" rows="3" cols="40" id="chatContent" name="chatContent"></textarea></td></tr>
			<tr><td colspan="2">您可以给他发送文件：</td></tr>
			<tr><td colspan="2"><input style ="width:100%" type="file" name="upload"/></td></tr>
			<tr><td colspan="2"><input type="button" value="发送" onclick="shiliaoFasong();" /></td></tr>
			</table>
			<iframe id="upload-target" style="display:none" name="upload-target"></iframe>
		</form>
	</div>
	<!-- 举报弹出层 -->
	<div id="jubao" style="display:none;background-color : #fff; overflow: hidden ;">
		请写出举报理由：
		<textarea style ="width : 100%" cols="40" rows="3" id="reportReason"></textarea>
		<input type="button" value="确定举报" onclick="reportClick();" />
	</div>
	<!-- 好友弹出层 -->
	<div id="myfriendslist" style="display:none;background-color: #fff;">
	<div style="text-align:left">
		<c:forEach items="${ulist}" var="u">
			<div class="my_order_mydesign_hisfriendinfo_child_username_img">
				<a href="getFriendOwnMessageAction?uname=${u.userName}"><img width="45px" height="45px" src="${u.userFace}"> </a>
			</div>
			<div class="my_order_mydesign_hisfriendinfo_child_username_detail">
				<div class="my_order_mydesign_hisfriendinfo_child_username_detail_name">
					<div id="username" class="friend_child_name">
						<a href="getFriendOwnMessageAction?uname=${u.userName}">
							${u.userName}</a>
					</div>
				</div>
				<div class="my_order_mydesign_hisfriendinfo_child_username_detail_renqi">
					指数：(${u.usersHot})</div>
			</div>
		</c:forEach>
	</div>
	</div>
	<!-- 设计修改弹出层 -->
	<div id="projectEdit" style="display:none;background-color: #fff;">
		<img alt="" src="" style="width:100px;height:auto;float:left;"/>
		<div>
			产品名称：<input type="text" value=""/><br/>
			产品功能：<input type="text" value=""/><br/>
			市场前景：<input type="text" value=""/><br/>
			备注信息：<input type="text" value=""/><br/>
			<input type="hidden" value="">
		</div>
		<a style="cursor:pointer;" href="javascript:editProject();">确定修改</a>
	</div>
	<!-- 上传提示信息 -->
	<div id="shangchuanMsg" style="display:none;background-color: #fff;">
		<font color="#472" style="font-size:15px;">上传信息到服务器中，请等待。</font>
	</div>
	<!-- ------------------------------------------------------------------ -->
	<jsp:include page="bottom.jsp"></jsp:include>
	<input type="hidden" value="0" id="hiddenflag" />
	<input type="hidden" value="" id="jubaoComm" />
</body>
</html>